home *** CD-ROM | disk | FTP | other *** search
-
-
-
- QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt))))
-
-
-
- NNNNAAAAMMMMEEEE
- QLineEdit - Simple line editor for inputting text
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- #include <qlineedit.h>
-
- Inherits QWidget.
-
- PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrrssss
- QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt (((( QQQQWWWWiiiiddddggggeeeetttt **** _p_a_r_e_n_t====0000,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr **** _n_a_m_e====0000 ))))
- ~~~~QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt ()
- ccccoooonnnnsssstttt cccchhhhaaaarrrr**** tttteeeexxxxtttt (((()))) ccccoooonnnnsssstttt
- iiiinnnntttt mmmmaaaaxxxxLLLLeeeennnnggggtttthhhh (((()))) ccccoooonnnnsssstttt
- vvvvooooiiiidddd sssseeeettttMMMMaaaaxxxxLLLLeeeennnnggggtttthhhh (((( iiiinnnntttt ))))
- vvvvooooiiiidddd sssseeeettttFFFFrrrraaaammmmeeee (((( bbbboooooooollll ))))
- bbbboooooooollll ffffrrrraaaammmmeeee (((()))) ccccoooonnnnsssstttt
- eeeennnnuuuummmm EEEEcccchhhhooooMMMMooooddddeeee {{{{ NNNNoooorrrrmmmmaaaallll,,,, NNNNooooEEEEcccchhhhoooo,,,, PPPPaaaasssssssswwwwoooorrrrdddd }}}}
- vvvvooooiiiidddd sssseeeettttEEEEcccchhhhooooMMMMooooddddeeee (((( EEEEcccchhhhooooMMMMooooddddeeee ))))
- EEEEcccchhhhooooMMMMooooddddeeee eeeecccchhhhooooMMMMooooddddeeee (((()))) ccccoooonnnnsssstttt
- vvvvooooiiiidddd sssseeeettttVVVVaaaalllliiiiddddaaaattttoooorrrr (((( QQQQVVVVaaaalllliiiiddddaaaattttoooorrrr **** ))))
- QQQQVVVVaaaalllliiiiddddaaaattttoooorrrr**** vvvvaaaalllliiiiddddaaaattttoooorrrr (((()))) ccccoooonnnnsssstttt
- vvvviiiirrrrttttuuuuaaaallll QQQQSSSSiiiizzzzeeee ssssiiiizzzzeeeeHHHHiiiinnnntttt (((()))) ccccoooonnnnsssstttt
- vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd sssseeeettttEEEEnnnnaaaabbbblllleeeedddd (((( bbbboooooooollll ))))
- vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd sssseeeettttFFFFoooonnnntttt (((( ccccoooonnnnsssstttt QQQQFFFFoooonnnntttt &&&& ))))
- vvvvooooiiiidddd sssseeeettttSSSSeeeelllleeeeccccttttiiiioooonnnn (((( iiiinnnntttt,,,, iiiinnnntttt ))))
- vvvvooooiiiidddd sssseeeettttCCCCuuuurrrrssssoooorrrrPPPPoooossssiiiittttiiiioooonnnn (((( iiiinnnntttt ))))
- iiiinnnntttt ccccuuuurrrrssssoooorrrrPPPPoooossssiiiittttiiiioooonnnn (((()))) ccccoooonnnnsssstttt
- bbbboooooooollll vvvvaaaalllliiiiddddaaaatttteeeeAAAAnnnnddddSSSSeeeetttt (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr ****,,,, iiiinnnntttt,,,, iiiinnnntttt,,,, iiiinnnntttt ))))
-
- PPPPuuuubbbblllliiiicccc SSSSlllloooottttssss
- vvvvooooiiiidddd sssseeeettttTTTTeeeexxxxtttt (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ))))
- vvvvooooiiiidddd sssseeeelllleeeeccccttttAAAAllllllll (((())))
- vvvvooooiiiidddd ddddeeeesssseeeelllleeeecccctttt (((())))
- vvvvooooiiiidddd cccclllleeeeaaaarrrrVVVVaaaalllliiiiddddaaaattttoooorrrr (((())))
- vvvvooooiiiidddd iiiinnnnsssseeeerrrrtttt (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ))))
- vvvvooooiiiidddd cccclllleeeeaaaarrrr (((())))
-
- SSSSiiiiggggnnnnaaaallllssss
- vvvvooooiiiidddd tttteeeexxxxttttCCCChhhhaaaannnnggggeeeedddd (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ))))
- vvvvooooiiiidddd rrrreeeettttuuuurrrrnnnnPPPPrrrreeeesssssssseeeedddd (((())))
-
- PPPPrrrrooootttteeeecccctttteeeedddd MMMMeeeemmmmbbbbeeeerrrrssss
- vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd mmmmoooouuuusssseeeePPPPrrrreeeessssssssEEEEvvvveeeennnntttt (((( QQQQMMMMoooouuuusssseeeeEEEEvvvveeeennnntttt **** ))))
- vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd mmmmoooouuuusssseeeeMMMMoooovvvveeeeEEEEvvvveeeennnntttt (((( QQQQMMMMoooouuuusssseeeeEEEEvvvveeeennnntttt **** ))))
- vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd mmmmoooouuuusssseeeeRRRReeeelllleeeeaaaasssseeeeEEEEvvvveeeennnntttt (((( QQQQMMMMoooouuuusssseeeeEEEEvvvveeeennnntttt **** ))))
- vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd mmmmoooouuuusssseeeeDDDDoooouuuubbbblllleeeeCCCClllliiiicccckkkkEEEEvvvveeeennnntttt (((( QQQQMMMMoooouuuusssseeeeEEEEvvvveeeennnntttt **** ))))
- vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd kkkkeeeeyyyyPPPPrrrreeeessssssssEEEEvvvveeeennnntttt (((( QQQQKKKKeeeeyyyyEEEEvvvveeeennnntttt **** ))))
- vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd ffffooooccccuuuussssIIIInnnnEEEEvvvveeeennnntttt (((( QQQQFFFFooooccccuuuussssEEEEvvvveeeennnntttt **** ))))
- vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd ffffooooccccuuuussssOOOOuuuuttttEEEEvvvveeeennnntttt (((( QQQQFFFFooooccccuuuussssEEEEvvvveeeennnntttt **** ))))
- vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd ppppaaaaiiiinnnnttttEEEEvvvveeeennnntttt (((( QQQQPPPPaaaaiiiinnnnttttEEEEvvvveeeennnntttt **** ))))
- vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd ttttiiiimmmmeeeerrrrEEEEvvvveeeennnntttt (((( QQQQTTTTiiiimmmmeeeerrrrEEEEvvvveeeennnntttt **** ))))
- vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd rrrreeeessssiiiizzzzeeeeEEEEvvvveeeennnntttt (((( QQQQRRRReeeessssiiiizzzzeeeeEEEEvvvveeeennnntttt **** ))))
-
-
-
- Page 1 (printed 9/22/98)
-
-
-
-
-
-
- QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt))))
-
-
-
- vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd lllleeeeaaaavvvveeeeEEEEvvvveeeennnntttt (((( QQQQEEEEvvvveeeennnntttt **** ))))
- vvvviiiirrrrttttuuuuaaaallll bbbboooooooollll eeeevvvveeeennnntttt (((( QQQQEEEEvvvveeeennnntttt **** ))))
- bbbboooooooollll hhhhaaaassssMMMMaaaarrrrkkkkeeeeddddTTTTeeeexxxxtttt (((()))) ccccoooonnnnsssstttt
- QQQQSSSSttttrrrriiiinnnngggg mmmmaaaarrrrkkkkeeeeddddTTTTeeeexxxxtttt (((()))) ccccoooonnnnsssstttt
- vvvvooooiiiidddd rrrreeeeppppaaaaiiiinnnnttttAAAArrrreeeeaaaa (((( iiiinnnntttt,,,, iiiinnnntttt ))))
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The QLineEdit widget is a simple line editor for inputting
- text.
-
- The default QLineEdit object has its own frame as specified
- by the Windows/Motif style guides, you can turn off the
- frame by calling setFrame( FALSE ).
-
- It draws the text using its own color group:
- colorGroup().text() on colorGroup().base(). The cursor and
- frame use other colors from same color group, of course.
-
- QLineEdit can display the content of itself in three ways,
- depending on the current echo mode. The echo modes available
- are:
-
- default.
- Normal - display characters as they are entered. This is the
-
- NoEcho - do not display anything.
-
- entered.
- Password -
- display asterisks instead of the characters actually
-
- The default key bindings are described in keyPressEvent();
- they cannot be customized except by inheriting the class.
-
- [[[[IIIImmmmaaaaggggeeee OOOOmmmmiiiitttttttteeeedddd]]]]
-
- [[[[IIIImmmmaaaaggggeeee OOOOmmmmiiiitttttttteeeedddd]]]]
-
- See also: QMultiLineEdit, QLabel, QComboBox, GUI Design
- Handbook: Field, Entry, and GUI Design Handbook: Field,
- Required.
-
- Examples: xform/xform.cpp layout/layout.cpp
- widgets/widgets.cpp
-
- MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDOOOOCCCCUUUUMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
- QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt (((( QQQQWWWWiiiiddddggggeeeetttt **** ppppaaaarrrreeeennnntttt====0000,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr **** nnnnaaaammmmeeee====0000 ))))
- Constructs a line editor with an empty edit buffer.
-
- The cursor position is set to the start of the line, the
- maximum buffer size to 32767 characters, and the buffer
- contents to "".
-
-
-
- Page 2 (printed 9/22/98)
-
-
-
-
-
-
- QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt))))
-
-
-
- The _p_a_r_e_n_t and _n_a_m_e arguments are sent to the QWidget
- constructor.
-
- QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::~~~~QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt (((())))
- Destroys the line editor.
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::cccclllleeeeaaaarrrr (((()))) [[[[ssssllllooootttt]]]]
- Syntax sugar for setText( "" ), provided to match no-
- argument signals.
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::cccclllleeeeaaaarrrrVVVVaaaalllliiiiddddaaaattttoooorrrr (((()))) [[[[ssssllllooootttt]]]]
- This slot is equivalent to setValidator( 0 ).
-
- iiiinnnntttt QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::ccccuuuurrrrssssoooorrrrPPPPoooossssiiiittttiiiioooonnnn (((()))) ccccoooonnnnsssstttt
- Returns the current cursor position for this line edit.
-
- See also: setCursorPosition().
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::ddddeeeesssseeeelllleeeecccctttt (((()))) [[[[ssssllllooootttt]]]]
- Deselects all text (i.e. removes marking) and leaves the
- cursor at the current position.
-
- QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::EEEEcccchhhhooooMMMMooooddddeeee QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::eeeecccchhhhooooMMMMooooddddeeee(((()))) ccccoooonnnnsssstttt
- Returns the current echo mode of the line edit.
-
- See also: setEchoMode().
-
- bbbboooooooollll QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::eeeevvvveeeennnntttt (((( QQQQEEEEvvvveeeennnntttt **** eeee )))) [[[[vvvviiiirrrrttttuuuuaaaallll pppprrrrooootttteeeecccctttteeeedddd]]]]
- Don't use it if you don't mean it.
-
- Reimplemented from QObject.
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::ffffooooccccuuuussssIIIInnnnEEEEvvvveeeennnntttt (((( QQQQFFFFooooccccuuuussssEEEEvvvveeeennnntttt **** )))) [[[[vvvviiiirrrrttttuuuuaaaallll
- pppprrrrooootttteeeecccctttteeeedddd]]]]
- Handles the cursor blinking.
-
- Reimplemented from QWidget.
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::ffffooooccccuuuussssOOOOuuuuttttEEEEvvvveeeennnntttt (((( QQQQFFFFooooccccuuuussssEEEEvvvveeeennnntttt **** )))) [[[[vvvviiiirrrrttttuuuuaaaallll
- pppprrrrooootttteeeecccctttteeeedddd]]]]
- Handles the cursor blinking and selection copying.
-
- Reimplemented from QWidget.
-
- bbbboooooooollll QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::ffffrrrraaaammmmeeee (((()))) ccccoooonnnnsssstttt
- Returns TRUE if the line edit draws itself inside a frame,
- FALSE if it draws itself without any frame.
-
- The default is to use a frame.
-
- See also: setFrame().
-
-
-
-
- Page 3 (printed 9/22/98)
-
-
-
-
-
-
- QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt))))
-
-
-
- bbbboooooooollll QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::hhhhaaaassssMMMMaaaarrrrkkkkeeeeddddTTTTeeeexxxxtttt (((()))) ccccoooonnnnsssstttt [[[[pppprrrrooootttteeeecccctttteeeedddd]]]]
- Returns TRUE if part of the text has been marked by the user
- (e.g. by clicking and dragging).
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::iiiinnnnsssseeeerrrrtttt (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** nnnneeeewwwwTTTTeeeexxxxtttt )))) [[[[ssssllllooootttt]]]]
- Removes any currently selected text, inserts _n_e_w_T_e_x_t,
- validates the result and if it is valid, sets it as the new
- contents of the line edit.
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::kkkkeeeeyyyyPPPPrrrreeeessssssssEEEEvvvveeeennnntttt (((( QQQQKKKKeeeeyyyyEEEEvvvveeeennnntttt **** eeee )))) [[[[vvvviiiirrrrttttuuuuaaaallll
- pppprrrrooootttteeeecccctttteeeedddd]]]]
- The key press event handler converts a key press to some
- line editor action.
-
- If return or enter is pressed and the current text is valid
- (or if the validator can make the text valid), the signal
- returnPressed is emitted.
-
- Here are the default key bindings:
-
- _L_e_f_t _A_r_r_o_w Move the cursor one character leftwards
-
- _R_i_g_h_t _A_r_r_o_w Move the cursor one character rightwards
-
- _B_a_c_k_s_p_a_c_e Delete the character to the left of the cursor
-
- _H_o_m_e Move the cursor to the beginning of the line
-
- _E_n_d Move the cursor to the end of the line
-
- _D_e_l_e_t_e Delete the character to the right of the cursor
-
- _S_h_i_f_t - _L_e_f_t _A_r_r_o_w Mark text one character leftwards
-
- _S_h_i_f_t - _R_i_g_h_t _A_r_r_o_w Mark text one character rightwards
-
- _C_o_n_t_r_o_l-_A Move the cursor to the beginning of the line
-
- _C_o_n_t_r_o_l-_B Move the cursor one character leftwards
-
- _C_o_n_t_r_o_l-_C Copy the marked text to the clipboard.
-
- _C_o_n_t_r_o_l-_D Delete the character to the right of the cursor
-
- _C_o_n_t_r_o_l-_E Move the cursor to the end of the line
-
- _C_o_n_t_r_o_l-_F Move the cursor one character rightwards
-
- _C_o_n_t_r_o_l-_H Delete the character to the left of the cursor
-
- _C_o_n_t_r_o_l-_V Paste the clipboard text into line edit.
-
-
-
-
- Page 4 (printed 9/22/98)
-
-
-
-
-
-
- QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt))))
-
-
-
- _C_o_n_t_r_o_l-_X Cut the marked text, copy to clipboard.
-
- All other keys with valid ASCII codes insert themselves into
- the line.
-
- Reimplemented from QWidget.
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::lllleeeeaaaavvvveeeeEEEEvvvveeeennnntttt (((( QQQQEEEEvvvveeeennnntttt **** )))) [[[[vvvviiiirrrrttttuuuuaaaallll pppprrrrooootttteeeecccctttteeeedddd]]]]
- Handles selection copying.
-
- Reimplemented from QWidget.
-
- QQQQSSSSttttrrrriiiinnnngggg QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::mmmmaaaarrrrkkkkeeeeddddTTTTeeeexxxxtttt (((()))) ccccoooonnnnsssstttt [[[[pppprrrrooootttteeeecccctttteeeedddd]]]]
- Returns the text marked by the user (e.g. by clicking and
- dragging), or 0 if no text is marked.
-
- See also: hasMarkedText().
-
- iiiinnnntttt QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::mmmmaaaaxxxxLLLLeeeennnnggggtttthhhh (((()))) ccccoooonnnnsssstttt
- Returns the current maximum length of the text in the
- editor.
-
- See also: setMaxLength().
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::mmmmoooouuuusssseeeeDDDDoooouuuubbbblllleeeeCCCClllliiiicccckkkkEEEEvvvveeeennnntttt (((( QQQQMMMMoooouuuusssseeeeEEEEvvvveeeennnntttt **** )))) [[[[vvvviiiirrrrttttuuuuaaaallll
- pppprrrrooootttteeeecccctttteeeedddd]]]]
- Handles mouse double click events for this widget.
-
- Reimplemented from QWidget.
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::mmmmoooouuuusssseeeeMMMMoooovvvveeeeEEEEvvvveeeennnntttt (((( QQQQMMMMoooouuuusssseeeeEEEEvvvveeeennnntttt **** eeee )))) [[[[vvvviiiirrrrttttuuuuaaaallll
- pppprrrrooootttteeeecccctttteeeedddd]]]]
- Handles mouse move events for the line editor, primarily for
- marking text.
-
- Reimplemented from QWidget.
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::mmmmoooouuuusssseeeePPPPrrrreeeessssssssEEEEvvvveeeennnntttt (((( QQQQMMMMoooouuuusssseeeeEEEEvvvveeeennnntttt **** eeee )))) [[[[vvvviiiirrrrttttuuuuaaaallll
- pppprrrrooootttteeeecccctttteeeedddd]]]]
- Handles mouse press events for this widget.
-
- Reimplemented from QWidget.
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::mmmmoooouuuusssseeeeRRRReeeelllleeeeaaaasssseeeeEEEEvvvveeeennnntttt (((( QQQQMMMMoooouuuusssseeeeEEEEvvvveeeennnntttt **** eeee )))) [[[[vvvviiiirrrrttttuuuuaaaallll
- pppprrrrooootttteeeecccctttteeeedddd]]]]
- Handles mouse release events for this widget.
-
- Reimplemented from QWidget.
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::ppppaaaaiiiinnnnttttEEEEvvvveeeennnntttt (((( QQQQPPPPaaaaiiiinnnnttttEEEEvvvveeeennnntttt **** eeee )))) [[[[vvvviiiirrrrttttuuuuaaaallll
- pppprrrrooootttteeeecccctttteeeedddd]]]]
- Handles paint events for the line editor.
-
-
-
- Page 5 (printed 9/22/98)
-
-
-
-
-
-
- QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt))))
-
-
-
- Reimplemented from QWidget.
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::rrrreeeeppppaaaaiiiinnnnttttAAAArrrreeeeaaaa (((( iiiinnnntttt ffffrrrroooommmm,,,, iiiinnnntttt ttttoooo )))) [[[[pppprrrrooootttteeeecccctttteeeedddd]]]]
- Repaints all characters from _f_r_o_m to _t_o. If cursorPos is
- between from and to, ensures that cursorPos is visible.
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::rrrreeeessssiiiizzzzeeeeEEEEvvvveeeennnntttt (((( QQQQRRRReeeessssiiiizzzzeeeeEEEEvvvveeeennnntttt **** )))) [[[[vvvviiiirrrrttttuuuuaaaallll
- pppprrrrooootttteeeecccctttteeeedddd]]]]
- Handles resize events for this widget.
-
- Reimplemented from QWidget.
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::rrrreeeettttuuuurrrrnnnnPPPPrrrreeeesssssssseeeedddd (((()))) [[[[ssssiiiiggggnnnnaaaallll]]]]
- This signal is emitted when the return or enter key is
- pressed.
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::sssseeeelllleeeeccccttttAAAAllllllll (((()))) [[[[ssssllllooootttt]]]]
- Selects all text (i.e. marks it) and moves the cursor to the
- end. Useful when a default value has been inserted. If the
- user types before clicking on the widget the selected text
- will be erased.
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::sssseeeettttCCCCuuuurrrrssssoooorrrrPPPPoooossssiiiittttiiiioooonnnn (((( iiiinnnntttt nnnneeeewwwwPPPPoooossss ))))
- Set the cursor position for this line edit to _n_e_w_P_o_s and
- repaint accordingly.
-
- See also: cursorPosition().
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::sssseeeettttEEEEcccchhhhooooMMMMooooddddeeee (((( EEEEcccchhhhooooMMMMooooddddeeee mmmmooooddddeeee ))))
- Sets the echo mode of the line edit widget.
-
- The echo modes available are:
-
- default.
- Normal - display characters as they are entered. This is the
-
- NoEcho - do not display anything.
-
- entered.
- Password -
- display asterisks instead of the characters actually
-
- It is always possible to cut and paste any marked text; only
- the widget's own display is affected.
-
- See also: echoMode().
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::sssseeeettttEEEEnnnnaaaabbbblllleeeedddd (((( bbbboooooooollll eeee )))) [[[[vvvviiiirrrrttttuuuuaaaallll]]]]
- \reimplemented.
-
- Reimplemented from QWidget.
-
-
-
-
- Page 6 (printed 9/22/98)
-
-
-
-
-
-
- QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt))))
-
-
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::sssseeeettttFFFFoooonnnntttt (((( ccccoooonnnnsssstttt QQQQFFFFoooonnnntttt &&&& ffff )))) [[[[vvvviiiirrrrttttuuuuaaaallll]]]]
- \reimplemented.
-
- Reimplemented from QWidget.
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::sssseeeettttFFFFrrrraaaammmmeeee (((( bbbboooooooollll eeeennnnaaaabbbblllleeee ))))
- Sets the line edit to draw itself inside a two-pixel frame
- if _e_n_a_b_l_e is TRUE, and to draw itself without any frame if
- _e_n_a_b_l_e is FALSE.
-
- The default is TRUE.
-
- See also: frame() and QComboBox.
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::sssseeeettttMMMMaaaaxxxxLLLLeeeennnnggggtttthhhh (((( iiiinnnntttt mmmm ))))
- Set the maximum length of the text in the editor. If the
- text is currently too long, it is chopped off at the limit.
- Any marked text will be unmarked. The cursor position is set
- to 0 and the first part of the string is shown.
-
- See also: maxLength().
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::sssseeeettttSSSSeeeelllleeeeccccttttiiiioooonnnn (((( iiiinnnntttt ssssttttaaaarrrrtttt,,,, iiiinnnntttt lllleeeennnnggggtttthhhh ))))
- Sets the marked area of this line edit to start at _s_t_a_r_t and
- be _l_e_n_g_t_h characters long.
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::sssseeeettttTTTTeeeexxxxtttt (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** tttteeeexxxxtttt )))) [[[[ssssllllooootttt]]]]
- Sets the line editor text to _t_e_x_t, clears the selection and
- moves the cursor to the end of the line.
-
- If necessary the text is truncated to fit maxLength().
-
- See also: text().
-
- Examples: xform/xform.cpp
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::sssseeeettttVVVVaaaalllliiiiddddaaaattttoooorrrr (((( QQQQVVVVaaaalllliiiiddddaaaattttoooorrrr **** vvvv ))))
- Sets this line edit to accept input only as accepted by _v.
-
- If _v == 0, remove the currently set input validator. The
- default is no input validator (ie. any input is accepted up
- to maxLength()).
-
- See also: validator() and QValidator.
-
- QQQQSSSSiiiizzzzeeee QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::ssssiiiizzzzeeeeHHHHiiiinnnntttt (((()))) ccccoooonnnnsssstttt [[[[vvvviiiirrrrttttuuuuaaaallll]]]]
- Returns a size which fits the contents of the line edit.
-
- The width returned tends to be enough for about 15-20
- characters.
-
- Examples: layout/layout.cpp widgets/widgets.cpp
-
-
-
- Page 7 (printed 9/22/98)
-
-
-
-
-
-
- QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt))))
-
-
-
- Reimplemented from QWidget.
-
- ccccoooonnnnsssstttt cccchhhhaaaarrrr **** QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::tttteeeexxxxtttt (((()))) ccccoooonnnnsssstttt
- Returns a pointer to the text currently in the line.
-
- If you need to store the text, you should make a copy of it.
- This can conveniently be done with a QString object:
-
- QString s = lineEd->text(); // makes a copy and stores it in s
-
- See also: setText().
-
- Examples: xform/xform.cpp
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::tttteeeexxxxttttCCCChhhhaaaannnnggggeeeedddd (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** )))) [[[[ssssiiiiggggnnnnaaaallll]]]]
- This signal is emitted every time the text has changed. The
- argument is the new text.
-
- vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::ttttiiiimmmmeeeerrrrEEEEvvvveeeennnntttt (((( QQQQTTTTiiiimmmmeeeerrrrEEEEvvvveeeennnntttt **** eeee )))) [[[[vvvviiiirrrrttttuuuuaaaallll
- pppprrrrooootttteeeecccctttteeeedddd]]]]
- Not used.
-
- Reimplemented from QObject.
-
- bbbboooooooollll QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::vvvvaaaalllliiiiddddaaaatttteeeeAAAAnnnnddddSSSSeeeetttt (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** nnnneeeewwwwTTTTeeeexxxxtttt,,,, iiiinnnntttt
- nnnneeeewwwwPPPPoooossss,,,, iiiinnnntttt nnnneeeewwwwMMMMaaaarrrrkkkkAAAAnnnncccchhhhoooorrrr,,,, iiiinnnntttt nnnneeeewwwwMMMMaaaarrrrkkkkDDDDrrrraaaagggg ))))
- Validates and perhaps sets this line edit to contain _n_e_w_T_e_x_t
- with the cursor at position newPos, with marked text from
- _n_e_w_M_a_r_k_A_n_c_h_o_r to _n_e_w_M_a_r_k_D_r_a_g. Returns TRUE if it changes the
- line edit and FALSE if it doesn't.
-
- If _n_e_w_T_e_x_t contains more than one line is longer than
- maxLength(), validateAndSet() truncates it before testing
- its validity.
-
- Repaints and emits textChanged() if appropriate.
-
- QQQQVVVVaaaalllliiiiddddaaaattttoooorrrr **** QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::vvvvaaaalllliiiiddddaaaattttoooorrrr (((()))) ccccoooonnnnsssstttt
- Returns a pointer to the current input validator, or 0 if no
- validator has been set.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- hhhhttttttttpppp::::////////wwwwwwwwwwww....ttttrrrroooollllllll....nnnnoooo////qqqqtttt////qqqqlllliiiinnnneeeeeeeeddddiiiitttt....hhhhttttmmmmllll
-
- CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTT
- Copyright 1992-1997 Troll Tech AS. See the LICENSE file
- included in the distribution for a complete license
- statement.
-
- AAAAUUUUTTTTHHHHOOOORRRR
- Generated automatically from the source code.
-
-
-
-
- Page 8 (printed 9/22/98)
-
-
-
-